package com.yang.mall.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yang.mall.dto.LiveShopCartDTO;
import com.yang.mall.dto.LiveShopCartNumDTO;
import com.yang.mall.entity.LiveShopCart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yang.mall.vo.LiveShopCartVO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 购物车表 服务类
 * </p>
 *
 * @author kadorlin
 * @since 2022-10-25
 */
public interface ILiveShopCartService extends IService<LiveShopCart> {


    /**
     * 购物车列表
     * @author:kadorlin
     * @date:2022/10/25 09:11
     * @param liveShopCartDTO
     * @return:com.baomidou.mybatisplus.core.metadata.IPage<com.yang.mall.vo.LiveShopCartVO>
     **/
    IPage<LiveShopCartVO> list(LiveShopCartDTO liveShopCartDTO);

    /**
     * 添加购物车
     * @author:kadorlin
     * @date:2022/10/25 09:11
     * @param liveShopCartDTO
     * @return:void
     **/
    void addItem(LiveShopCartDTO liveShopCartDTO);

    /**
     * 批量删除购物车
     * @author:kadorlin
     * @date:2022/10/25 09:12
     * @param ids
     * @return:void
     **/
    void batchRemove(List<Long> ids);

    /**
     * 修改数量
     * @author:kadorlin
     * @date:2022/10/25 09:33
     * @param liveShopCartNum
     * @return:void
     **/
    void edit(LiveShopCartNumDTO liveShopCartNum);
}
